package seo.location;

import android.location.Location;
import android.location.LocationListener;
import android.os.Bundle;
import android.util.Log;

public class SEOLocationListener implements LocationListener {

	public static final String TAG = "Location";
	private SEOLocationProvider locationProviderInformation;
	
	
	public SEOLocationListener(
			SEOLocationProvider locationProviderInformation) {
		this.locationProviderInformation = locationProviderInformation;
	}

	public void onLocationChanged(Location location) {
		Log.d(TAG, "onLocationChanged");
		this.locationProviderInformation.setNewLocation(location);
	}

	public void onProviderDisabled(String provider) {
		Log.d(TAG, "onProviderDisabled " + provider);
	}

	public void onProviderEnabled(String provider) {
		Log.d(TAG, "onProviderEnabled");
	}

	public void onStatusChanged(String provider, int status, Bundle extras) {
		Log.d(TAG, "onStatusChanged");
	}

}
